package com.example.lenovo.demo;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.view.View;

public class MessageCenterActivity extends AppCompatActivity {
       private Toolbar toolbar;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_message_center);
        toolbar = (Toolbar) findViewById(R.id.toolbar_messageCenter);
        setSupportActionBar(toolbar);
        toolbar.setTitle("消息中心");
        toolbar.setNavigationIcon(R.mipmap.register_left);
        // getSupportActionBar().setDisplayHomeAsUpEnabled(true);
        toolbar.setNavigationOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                finish();
            }
        });
    }


}
